lagrange method partial differential equations